package cn.study.luckydomain.award;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class AwardEntity {
    private Long id;
    private Long activityId;

    /**
     * 奖品id
     */
    private Long prizeId;

    /**
     * 数量
     */
    private AwardNumber number;

    /**
     * 奖项名称
     */
    private String awardName;

    /**
     * 概率
     */
    private Double probability;

    /**
     *
     */
    private LocalDateTime createTime;

    /**
     *
     */
    private String creator;

    /**
     *
     */
    private LocalDateTime updateTime;

    /**
     *
     */
    private String updater;
    public Boolean isPrize(){
        if(prizeId!=0){
            return true;
        }
        return false;
    }
}
